package com.handyshop.mall.dubbo.user.dto.user;

import com.handyshop.mall.dubbo.user.entity.SysMenu;
import com.handyshop.mall.dubbo.user.entity.SysOrg;
import com.handyshop.mall.dubbo.user.entity.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author hs
 * @date 2020-12-01 18:18
 **/
@Data
public class UserVo implements Serializable {
    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "随机盐")
    private String salt;

    @ApiModelProperty(value = "简介")
    private String note;

    @ApiModelProperty(value = "头像")
    private String logo;

    @ApiModelProperty(value = "是否锁定(0:正常;1:冻结)")
    private Boolean lockFlag;

    @ApiModelProperty(value = "创建人id")
    private Long creatorId;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date modifyTime;

    @ApiModelProperty(value = "用户角色列表")
    private List<SysRole> sysRoles;

    @ApiModelProperty(value = "用户菜单列表")
    private List<SysMenu> sysMenus;

    @ApiModelProperty(value = "用户部门列表")
    private List<SysOrg> sysOrgs;

}
